package com.fly.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.fly.demo.dao.UserInfoMapper;
import com.fly.demo.model.UserInfo;
import com.fly.demo.model.UserInfoExample;
import com.fly.demo.service.UserInfoSevice;

@Transactional
@Service
public class UserInfoSeviceImpl implements UserInfoSevice
{
    @Autowired
    private UserInfoMapper userInfoMapper;
    
    @Transactional(readOnly = true)
    @Override
    public List<UserInfo> selectAll()
    {
        return userInfoMapper.selectByExample(new UserInfoExample());
    }
    
    @Transactional(readOnly = true)
    @Override
    public UserInfo selectUserDetail()
    {
        return userInfoMapper.selectByPrimaryKey("1");
    }
    
}
